package com.xujie.sportsmeeting.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 报名审核通过事件
 */
@Getter
public class RegistrationAuditPassedEvent extends ApplicationEvent {

    /**
     * 报名记录ID
     */
    private final Long registrationId;

    /**
     * 项目ID
     */
    private final Long eventId;

    /**
     * 运动员ID
     */
    private final Long athleteId;

    /**
     * 审核人ID
     */
    private final Long auditUserId;

    public RegistrationAuditPassedEvent(Object source, Long registrationId, Long eventId, Long athleteId, Long auditUserId) {
        super(source);
        this.registrationId = registrationId;
        this.eventId = eventId;
        this.athleteId = athleteId;
        this.auditUserId = auditUserId;
    }
}
